#!/bin/sh
#set -n
#set -x
flogin=$1
user=${flogin%%@*}
host=${flogin##*@}
#cd /mostdownloads/$USER
echo ~/.ssh/$host-ida_dsa
bcmd="sftp -o IdentityFile=~/.ssh/$user@$host-ida_dsa $flogin"
if [ -f /bin/tcsh ] ; then
	bcmd="tcsh -m -ic '$bcmd'"
fi
eval $bcmd
if (( $? != 0 )) ; then
read m
fi
